﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MvcMall.Core.Contacts.Tasks;

namespace MvcMall.AdminWeb.Manage.Mails
{
    public partial class MailTemplateIndex : ManageBasePage
    {
        private IMailTemplateTask _mailTemplateTask;

        protected void Page_Load(object sender, EventArgs e)
        {
            ValidatePagePower("MailTemplateIndex");
            _mailTemplateTask = GetInstance<IMailTemplateTask>();

            if (!IsPostBack)
            {
                var list = _mailTemplateTask.GetAll();
                rptRoles.DataSource = list;
                rptRoles.DataBind();
            }
        }
    }
}